//
// Created by jsjxsy on 2022/8/22.
//
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
void iStringStreamTest() {
  string line, word;
  while (getline(cin, line)) {
    istringstream stream(line);
    while (stream >> word) {
      cout << word << endl;
    }
  }
}

void oStringStreamTest() {
  int val1 = 512, val2 = 1024;
  ostringstream format_message;
  format_message << "val1:" << val1 << "\n"
                 << "val2:" << val2 << "\n";
  cout << format_message.str();
}
int main() {
 // iStringStreamTest();
  oStringStreamTest();
  return 0;
}
